//
//  GpsHistoryCell.m
//  OST
//
//  Created by mac on 13-7-18.
//  Copyright (c) 2013年 mac. All rights reserved.
//

#import "GpsHistoryCell.h"

@implementation GpsHistoryCell
@synthesize labelName;
@synthesize data;

-(void)initView
{
    UIImage *img1  = [UIImage imageNamed:@"bg_cell"];
    UIImage *img2  = [UIImage imageNamed:@"bg_cell_sel"];
    
    UIImageView *cellbg1 = [[UIImageView alloc]initWithImage:img1];
    UIImageView *cellbg2 = [[UIImageView alloc]initWithImage:img2];
    
    self.backgroundView = cellbg1;
    self.selectedBackgroundView = cellbg2;
}

-(void)setData:(NSDictionary *)_data
{
    if (data != _data ) {
       data = _data;
    }
    
    labelName.text = [data objectForKey:@"name"];
}


@end
